﻿Shader "DKRP/Lit"
{
    Properties
    {
        _MainTex ("Albedo&Alpha", 2D) = "white" {}
        _Color("color",COLOR) = (1,1,1,1)
		_CutOff("CutOff",Range(0,1)) = 0.5
    }
    SubShader
    {
        Tags { "RenderType"="Opaque" }
        LOD 100

        Pass
        {
            HLSLPROGRAM
            #pragma target 3.5

            #pragma multi_compile_instancing
			#pragma multi_compile _ _SHADOWS_SOFT
			#pragma multi_compile _ _SHADOWS_HARD
			#pragma multi_compile _ _CASCADED_SHADOWS_HARD _CASCADED_SHADOWS_SOFT
			#pragma vertex LitPassVertex
            #pragma fragment LitPassFragment 
            #include "Lit.hlsl"
            ENDHLSL
	    }


		Pass {
			Tags {
				"LightMode" = "ShadowCaster"
			}
//			Cull OFF 
			
			HLSLPROGRAM
			
			#pragma target 3.5
			
			#pragma multi_compile_instancing
			#pragma instancing_options assumeuniformscaling
			#pragma vertex ShadowCasterPassVertex
			#pragma fragment ShadowCasterPassFragment
			
			#include "ShadowCaster.hlsl"
			
			ENDHLSL
		}
	  }
}
